import {httpRequest} from '@/utils/http';
import { ElevatorFaultVO, ElevatorFaultForm, ElevatorFaultQuery } from '@/api/iot/elevatorFault/types';
enum Api{
    root = '/iot/elevatorFault',
    list = '/iot/elevatorFault/list',
}
/**
 * 查询电梯故障列表
 * @param query
 * @returns {*}
 */
export function listElevatorFault(query?: ElevatorFaultQuery) {
    return httpRequest.get<ElevatorFaultVO[]>({url: Api.list, data: query});
}

/**
 * 查询电梯故障详细
 * @param faultId
 */
export function getElevatorFault(faultId: string | number) {
    return httpRequest.get<ElevatorFaultVO>({url: Api.root + '/' + faultId});
}